<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>RectAreaLightHelper - Three.js Docs</title>
	<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
	<script src="../scripts/highlight.min.js"></script>
	<link type="text/css" rel="stylesheet" href="../styles/highlight-three.css">
	<link type="text/css" rel="stylesheet" href="../styles/page.css">
</head>
<body>
		<p class="inheritance" translate="no"><a href="EventDispatcher.html">EventDispatcher</a> → <a href="Object3D.html">Object3D</a> → <a href="Line.html">Line</a> → </p>
	<h1 translate="no">RectAreaLightHelper</h1>
		<section>
			<header>
				<div class="class-description"><p>Creates a visual aid for rect area lights.</p>
<p><code>RectAreaLightHelper</code> must be added as a child of the light.</p></div>
				<h2>Code Example</h2>
				<div translate="no"><pre><code class="language-js">const light = new THREE.RectAreaLight( 0xffffbb, 1.0, 5, 5 );
const helper = new RectAreaLightHelper( light );
light.add( helper );
</code></pre></div>
			</header>
			<article>
				<h2 class="subsection-title">Import</h2>
				<p><span translate="no">RectAreaLightHelper</span> is an addon, and must be imported explicitly, see <a href="https://threejs.org/manual/#en/installation" target="_blank" rel="noopener">Installation#Addons</a>.</p>
				<pre><code class="language-js">import { RectAreaLightHelper } from 'three/addons/helpers/RectAreaLightHelper.js';</code></pre>
				<div class="container-overview">
					<h2>Constructor</h2>
					<h3 class="name name-method" id="RectAreaLightHelper" translate="no">new <a href="#RectAreaLightHelper">RectAreaLightHelper</a><span class="signature">( light : <span class="param-type"><a href="RectAreaLight.html">RectAreaLight</a></span>, color : <span class="param-type">number | <a href="Color.html">Color</a> | string</span> )</span> </h3>
					<div class="method">
						<div class="description">
							<p>Constructs a new rect area light helper.</p>
						</div>
						<table class="params">
							<tbody>
								<tr>
									<td class="name">
										<strong>light</strong>
									</td>
									<td class="description last">
										<p>The light to visualize.</p>
									</td>
								</tr>
								<tr>
									<td class="name">
										<strong>color</strong>
									</td>
									<td class="description last">
										<p>The helper's color.
If this is not the set, the helper will take the color of the light.</p>
									</td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
				<h2 class="subsection-title">Properties</h2>
				<div class="member">
					<h3 class="name" id="color" translate="no">.<a href="#color">color</a><span class="type-signature"> : number | <a href="Color.html">Color</a> | string | undefined</span> </h3>
					<div class="description">
						<p>The helper's color. If <code>undefined</code>, the helper will take the color of the light.</p>
					</div>
				</div>
				<div class="member">
					<h3 class="name" id="light" translate="no">.<a href="#light">light</a><span class="type-signature"> : <a href="RectAreaLight.html">RectAreaLight</a></span> </h3>
					<div class="description">
						<p>The light to visualize.</p>
					</div>
				</div>
				<h2 class="subsection-title">Methods</h2>
					<h3 class="name name-method" id="dispose" translate="no">.<a href="#dispose">dispose</a><span class="signature">()</span> </h3>
					<div class="method">
						<div class="description">
							<p>Frees the GPU-related resources allocated by this instance. Call this
method whenever this instance is no longer used in your app.</p>
						</div>
					</div>
				<h2 class="subsection-title">Source</h2>
				<p>
					<a href="https://github.com/mrdoob/three.js/blob/master/examples/jsm/helpers/RectAreaLightHelper.js" translate="no" target="_blank" rel="noopener">examples/jsm/helpers/RectAreaLightHelper.js</a>
				</p>
			</article>
		</section>
<script src="../scripts/linenumber.js"></script>
<script src="../scripts/page.js"></script>
</body>
</html>